#include <iostream>
class Interger
{
public:
    explicit Interger(int a)
    {
        std::cout << "带参构造\n";
        m_a = a;
    }
    ~Interger()
    {
        std::cout << "无参构造\n";
    }
    int getInteger()
    {
        return m_a;
    }

private:
    int m_a;
};

int main()
{
    Interger i(10);
    /*构造函数的隐式转换*/
    i = 20; //=Interger(20);
    std::cout << i.getInteger() << std::endl;
    return 0;
}